# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-enaml
_pkgname=enaml
pkgver=0.18.0
pkgrel=1
pkgdesc='Declarative DSL for building rich user interfaces in Python.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/enaml/#files'
license=('BSD')
depends=('python' 'python-ply' 'python-kiwisolver' 'python-atom'
         'python-qtpy')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('96b15e084ce3bdfdcb594ac18001de6351b015b6ceba1d9c1369cacabb8b2056ad2b221379db6b694e5c6948839240a6f7d9240292ff577639748685f7783284')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

